package com.dgut.doctorservice.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

public class MedecineManagers {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "药品id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "药品名称")
    private String name;

    @ApiModelProperty(value = "单价")
    private Double price;

    @ApiModelProperty(value = "药品种类")
    private String sort;

    @ApiModelProperty(value = "一盒药品中药品含量")
    private Integer specification;

    @ApiModelProperty(value = "厂家")
    private String vender;

    @ApiModelProperty(value = "药品批次")
    private Integer batch;

    @ApiModelProperty(value = "用法（一天几次）")
    private String useWay;

    @ApiModelProperty(value = "一次多少量")
    private String dosage;

    @ApiModelProperty(value = "生产日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date beginDate;

    @ApiModelProperty(value = "有效期")
    private Integer endDate;

    @ApiModelProperty(value = "售价")
    private Double sell;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;

    @ApiModelProperty(value = "逻辑删除：1、已删除；2、未删除")
    @TableLogic
    private Integer deleted;


}
